import request from '@/utils/request'

// 查询麻醉方式列表
export function listAnesthesiamethod(query) {
  return request({
    url: '/manage/anesthesiamethod/list',
    method: 'get',
    params: query
  })
}

// 查询麻醉方式详细
export function getAnesthesiamethod(anesthesiaMethodId) {
  return request({
    url: '/manage/anesthesiamethod/' + anesthesiaMethodId,
    method: 'get'
  })
}

// 新增麻醉方式
export function addAnesthesiamethod(data) {
  return request({
    url: '/manage/anesthesiamethod',
    method: 'post',
    data: data
  })
}

// 修改麻醉方式
export function updateAnesthesiamethod(data) {
  return request({
    url: '/manage/anesthesiamethod',
    method: 'put',
    data: data
  })
}

// 删除麻醉方式
export function delAnesthesiamethod(anesthesiaMethodId) {
  return request({
    url: '/manage/anesthesiamethod/' + anesthesiaMethodId,
    method: 'delete'
  })
}
